package us.mooresr.webtroopmanager.client.events;

import us.mooresr.webtroopmanager.shared.Role;

import com.google.gwt.event.shared.GwtEvent;

public class RoleAddedEvent extends GwtEvent<RoleAddedHandler> {
	private final Role role;
	public static final Type<RoleAddedHandler> TYPE = new Type<RoleAddedHandler>();
	
	
	
	public RoleAddedEvent(Role role) {
		super();
		this.role = role;
	}
	
	

	public Role getRole() {
		return role;
	}



	@Override
	protected void dispatch(RoleAddedHandler handler) {
		handler.onAddEvent(this);
		
	}

	@Override
	public com.google.gwt.event.shared.GwtEvent.Type<RoleAddedHandler> getAssociatedType() {
		return TYPE;
	}

}
